﻿using System.Collections.Generic;
using System.Linq;

namespace LDriver
{
     /// <summary>
     /// 
     /// </summary>
    public class Command
    {
        public string Name { get; set; }
        public byte[] CommandBytes { get; set; }
        public byte[] ResponseHeader { get; set; }
        public int ResponseLenght { get; set; }

        //private List<Packet> ResponsePackets;

        public Command(string name, byte[] commandbytes, byte[] responseheader, int responselenght )
        {
            Name = name;
            CommandBytes = commandbytes;

            ResponseHeader = responseheader;
            ResponseLenght = responselenght;

        }

        //public List<byte[]> Headers
        //{
        //    get
        //    {
        //        return ResponsePackets.Select(packet => packet.Header).ToList();
        //    }

        //}

    }
   
}
